package com.aco.party.enums;

/**
 * Created by WangShijun on 2016/4/8.
 */
public enum PostTypeEnum {
    普通("general"),
    魔客("moke"),
    NULL("");

    private String value;

    public String getValue() {
        return value;
    }
    PostTypeEnum(String value){
        this.value = value;
    }

    public static PostTypeEnum getPostTypeEnum(String value){
        for (PostTypeEnum type : PostTypeEnum.values()) {
            if(type.value.equals(value))
                return type;
        }
        return NULL;
    }
}
